package com.handpay.nocardpay.baselibrary.main.home.view.fragment;

import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;

import com.handpay.nocardpay.baselibrary.R;
import com.handpay.nocardpay.baselibrary.commbase.view.fragment.BaseFragment;
import com.handpay.nocardpay.baselibrary.qualificationinfo.view.fragment.QualificationBaseInfoFragment;

/**
 * Created by sxshi on 2017/8/20.
 * 当用户未提交资质时候首先进入这个界面提示用户去提交资质
 */

public class LoginSuccessNouploadQuaFragment extends BaseFragment {
    private Button btn_submit;

    public static LoginSuccessNouploadQuaFragment newInstance() {

        Bundle args = new Bundle();

        LoginSuccessNouploadQuaFragment fragment = new LoginSuccessNouploadQuaFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public String getFragmentTitle() {
        return _mActivity.getString(R.string.loginsuccess);
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_login_with_noupload;
    }

    @Override
    public void initView(View view) {
        Toolbar mToolbar = (Toolbar) view.findViewById(R.id.toolbar);
        initToolbar(mToolbar, true);
        btn_submit = (Button) view.findViewById(R.id.btn_submit);

    }

    @Override
    public void initListener() {
        btn_submit.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startWithPop(QualificationBaseInfoFragment.newInstance());
            }
        });
    }

    @Override
    public void initData(Bundle savedInstanceState) {

    }
}
